package com.example.ktpspringboot.service;

import com.example.ktpspringboot.entity.Course;
import com.example.ktpspringboot.entity.Student;
import com.example.ktpspringboot.entity.Teacher;

import java.util.List;

public interface CourseService {
    public List<Course> getStudyCourse(String username, String role);

    public List<Course> getTeachCourse(String username, String role);

    public List<Course> getHelpCourse(String username, String role);

    public List<Course> getTopCourse(String username, String role);

    public boolean dataVerification(String arg, String regex);

    public String joinCourse(String code, String username, String role);

    public String establishCourseQueryTeaName(String username);

    public String establishCourseQueryTeaUuid(String username);

    public void dealWithTeachingMode(String teachingMode, Course course);

    public String generateEnrollmentCode();

    public int gainStudentNumber(String studyClass);

    public String establishCourse(Course course, String username);

    public String topping(String courseCode);
    public String cancelTopping(String courseCode);

    public String preserveUrl();

    //通过课程号查询课程id
    public List<Teacher> getCourseIdByCode(String courseCode);
    public List<Student> getCourseIdByCodeForStudent(String courseCode);

    public int sumTeacher(String courseCode);

    public int sumStudent(String courseCode);
}
